package com.ruoyi.student.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentBaodaoMapper;
import com.ruoyi.student.domain.StudentBaodao;
import com.ruoyi.student.service.IStudentBaodaoService;

/**
 * 新生报到Service业务层处理
 *
 * @author gdslovehy
 * @date 2025-05-22
 */
@Service
public class StudentBaodaoServiceImpl implements IStudentBaodaoService
{
    @Autowired
    private StudentBaodaoMapper studentBaodaoMapper;

    /**
     * 查询新生报到
     *
     * @param id 新生报到主键
     * @return 新生报到
     */
    @Override
    public StudentBaodao selectStudentBaodaoById(String id)
    {
        return studentBaodaoMapper.selectStudentBaodaoById(id);
    }

    /**
     * 查询新生报到列表
     *
     * @param studentBaodao 新生报到
     * @return 新生报到
     */
    @Override
    public List<StudentBaodao> selectStudentBaodaoList(StudentBaodao studentBaodao)
    {
        return studentBaodaoMapper.selectStudentBaodaoList(studentBaodao);
    }

    /**
     * 新增新生报到
     *
     * @param studentBaodao 新生报到
     * @return 结果
     */
    @Override
    public int insertStudentBaodao(StudentBaodao studentBaodao)
    {
        return studentBaodaoMapper.insertStudentBaodao(studentBaodao);
    }

    /**
     * 修改新生报到
     *
     * @param studentBaodao 新生报到
     * @return 结果
     */
    @Override
    public int updateStudentBaodao(StudentBaodao studentBaodao)
    {
        return studentBaodaoMapper.updateStudentBaodao(studentBaodao);
    }

    /**
     * 批量删除新生报到
     *
     * @param ids 需要删除的新生报到主键
     * @return 结果
     */
    @Override
    public int deleteStudentBaodaoByIds(String[] ids)
    {
        return studentBaodaoMapper.deleteStudentBaodaoByIds(ids);
    }

    /**
     * 删除新生报到信息
     *
     * @param id 新生报到主键
     * @return 结果
     */
    @Override
    public int deleteStudentBaodaoById(String id)
    {
        return studentBaodaoMapper.deleteStudentBaodaoById(id);
    }

    @Override
    public List<StudentBaodao> selectStudentBaodaoByIds(String[] ids) {
        return studentBaodaoMapper.selectStudentBaodaoByIds(ids);
    }

    @Override
    public List<StudentBaodao> selectStudentBaodaoIdsByCollegeCodes( List<String> collegeCodes,StudentBaodao studentBaodao) {
        return studentBaodaoMapper.selectStudentBaodaoIdsByCollegeCodes(collegeCodes,studentBaodao);
    }
}
